﻿FlyTalk.views.MainView = Ext.extend(Ext.Panel, {
    fullscreen: true,
    layout: 'card',
    cardSwitchAnimation: 'slide',
    initComponent: function () {

		Ext.apply(FlyTalk.views, {
		//	TalkView: new FlyTalk.views.TalkView(),
			//SearchView: new FlyTalk.views.SearchView(),
			PostView: new FlyTalk.views.PostView(),
			ComposeView: new FlyTalk.views.ComposeView(),
			QuestionForm: new FlyTalk.views.QuestionForm(),
			HomeView: new FlyTalk.views.HomeView(),
			//ColumnView: new FlyTalk.views.ColumnView(),
			//HotTopicsView: new FlyTalk.views.HotTopicsView(),
        });

        this.items = [
			//FlyTalk.views.TalkView,
			//FlyTalk.views.SearchView,
			FlyTalk.views.PostView,
			FlyTalk.views.ComposeView,
			FlyTalk.views.QuestionForm,
			FlyTalk.views.HomeView,
        ]
		

        FlyTalk.views.MainView.superclass.initComponent.call(this);

    }
});